]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
app-system: Fix the keys in the id_to_app table
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 3 Nov 2013 17:10:00 +0000 (12:10 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 3 Nov 2013 17:10:00 +0000 (12:10 -0500)
The ID that's passed to us isn't usable as a key to store, as it's
probably junk after the method returns. Use the app's storage for
the ID instead.

src/shell-app-system.c

index d9e39e912701a1c7fcd2acb91ef12a8edd5e7ae0..56636fffdfae8cd37a3432e7d90692df3b336309 100644 (file)
@@ -141,7 +141,7 @@ shell_app_system_lookup_app (ShellAppSystem   *self,
     return NULL;
 
   app = _shell_app_new (info);
-  g_hash_table_insert (priv->id_to_app, (char *) id, app);
+  g_hash_table_insert (priv->id_to_app, shell_app_get_id (id), app);
   return app;
 }